package com.javabasic.spring.exercise;

import lombok.Data;

/**
 * @author: 晓帆
 * @description:
 * @create: 2021-06-25 19:37
 **/
@Data
public class UserServiceImp implements UserService{
    private OrderService orderService;
    public UserServiceImp() {
        System.out.println("开始初始化");
    }

    @Override
    public void say() {
        System.out.println("开始吃饭");
        orderService.eat("冬瓜");

    }

    @Override
    public void say(String name) {
        System.out.println("你好 "+ name);
    }
}
